//
//  SnifferApp.h
//  PacketSniffer
//
//  Created by nark on 16/04/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <PacketSniffer/PacketSniffer.h>


@interface SnifferApp : NSApplication <NSApplicationDelegate, SnifferListener> {
	
	IBOutlet NSWindow *mainWindow;
	IBOutlet NSWindow *captureWindow;
	
	IBOutlet NSPopUpButton *devicesPopUp;
	IBOutlet NSButton *startStopButton;
	IBOutlet NSTextField *filterTextField;
	IBOutlet NSTableView *propertyTableView;
	
	IBOutlet NSProgressIndicator *snifferIndicator;
	IBOutlet NSOutlineView *detailsOutlineView;
	
	NSMutableArray *devices;
	NSMutableDictionary *propertyDict;
	PSDeviceFinder *devFinder;
	PSPacketSniffer *ps;
	
	NSNotificationCenter *nc;
	PSNode *root;
}


- (IBAction)startCapture:(id)sender;
- (IBAction)stopCapture:(id)sender;
- (IBAction)clear:(id)sender;
- (BOOL)shouldCloseSheet:(id)sender;

@end
